﻿using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;

namespace QcRiverFlows.Models
{

    public class River
    {

        [Key]
        public int Id { get; set; }

        [Required, MaxLength(100)]
        public string Name { get; set; }

        [Required]
        public int RegionId { get; set; }


        public virtual Region Region { get; set; }
        public virtual ICollection<Section> Sections { get; set; }

    }
}